﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Cms/Admin.Master" AutoEventWireup="true"
    CodeBehind="EditSpecial.aspx.cs" Inherits="Aij1.Cms.EditSpecial" %>

<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxHtmlEditor.v13.1, Version=13.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxHtmlEditor" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxSpellChecker.v13.1, Version=13.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxSpellChecker" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Xpo.v13.1.Web, Version=13.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Xpo" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxCallback" TagPrefix="dx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style1
        {
            width: 100%;
        }
    </style>
    <script type="text/javascript">
        function callback_CallbackComplete(s, e) {
            var key = e.result;
            lblTips.SetText(key);
            setTimeout("lblTips.SetText('')", 3000);
            btnSubmit.SetEnabled(true);
        }
        function submit_Click(s, e) {
            btnSubmit.SetEnabled(false);
            callback.PerformCallback();
        }
    </script>
</asp:Content>
<asp:Content ID="CT2" ContentPlaceHolderID="PH" runat="server">
    <table class="style1">
        <tr>
            <td>
                &nbsp;
            </td>
            <td>
              <b><%=PMenu.Title %></b>
            </td>
        </tr>
        <tr>
            <td>
                正文:
            </td>
            <td>
                <dx:ASPxHtmlEditor ID="edtContent" runat="server" Width="680px" Height="500px">
                    <SettingsHtmlEditing AllowScripts="True" />
                    <SettingsImageUpload UploadImageFolder="">
                        <ValidationSettings AllowedFileExtensions=".jpe, .jpeg, .jpg, .gif, .png" MultiSelectionErrorText="Attention! 

The following {0} files are invalid because they exceed the allowed file size ({1}) or their extensions are not allowed. These files have been removed from selection, so they will not be uploaded. 

{2}">
                        </ValidationSettings>
                    </SettingsImageUpload>
                    <SettingsImageSelector>
                        <CommonSettings AllowedFileExtensions=".jpe, .jpeg, .jpg, .gif, .png"></CommonSettings>
                    </SettingsImageSelector>
                    <SettingsDocumentSelector>
                        <CommonSettings AllowedFileExtensions=".rtf, .pdf, .doc, .docx, .odt, .txt, .xls, .xlsx, .ods, .ppt, .pptx, .odp">
                        </CommonSettings>
                    </SettingsDocumentSelector>
                </dx:ASPxHtmlEditor>
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;
            </td>
            <td>
                <table class="style1">
                    <tr>
                        <td width="100">
                            <dx:ASPxButton ID="btnSubmit" runat="server" AutoPostBack="False" Text="提交" Width="80px" ClientInstanceName="btnSubmit">
                                <ClientSideEvents Click="submit_Click" />
                            </dx:ASPxButton>
                        </td>
                        <td width="100">
                            <dx:ASPxButton ID="btnReturn" runat="server" AutoPostBack="False" Text="返回" Width="80px">
                                <ClientSideEvents Click="function(s, e) {	history.back();}" />
                            </dx:ASPxButton>
                        </td>
                        <td width="100">
                            &nbsp;</td>
                        <td>
                            <dx:ASPxCallback ID="ASPxCallback1" runat="server" ClientInstanceName="callback"
                                OnCallback="ASPxCallback1_Callback">
                                <ClientSideEvents CallbackComplete="callback_CallbackComplete" />
                            </dx:ASPxCallback>
                            <dx:ASPxLabel ID="lblTips" runat="server" ClientInstanceName="lblTips" CssClass="tips">
                            </dx:ASPxLabel>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
</asp:Content>
